<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Đăng Ký</title>
<link rel="stylesheet" href="css/calendar.css" />
<script src="js/calendar/jquery-1.8.3.js"></script>
<script src="js/calendar/jquery-ui.js"></script>
<script>
	$(function() {
		$("#datepicker").datepicker();
	});
</script>
</head>
<style>

</style>
<body style="margin: 0; padding: 0;">
	<% 
		String email = "";
		String email_err = "";
		if (request.getAttribute("email_err") != null) {
			email_err += request.getAttribute("email_err");
		}
		if (request.getAttribute("email") != null) {
			email += request.getAttribute("email");
		}
		String password_err = "";
		if (request.getAttribute("password_err") != null) {
			password_err = (String) request.getAttribute("password_err");
		}
		String name_err = "";
		String name = "";
		if (request.getAttribute("name_err") != null) {
			name_err = (String) request.getAttribute("name_err");
		}
		if (request.getAttribute("name") != null) {
			name += request.getAttribute("name");
		}

		String phone_err = "";
		String phone = "";
		if (request.getAttribute("phone_err") != null) {
			phone_err = (String) request.getAttribute("phone_err");
		}
		if (request.getAttribute("phone") != null) {
			phone += request.getAttribute("phone");
		}
		String day_err = "";
		if (request.getAttribute("day_err") != null) {
			day_err = (String) request.getAttribute("day_err");
		}
	%>
	<div>
		<form enctype="multipart/form-data" action="Register" method="post" target="se">
			<table>
				<tr>
					<td colspan="2"><b>THÔNG TIN ĐĂNG NHẬP</b></td>
				</tr>
				<tr>
					<td>Email:</td>
					<td><input type="text" name="email" value="<%=email%>" /><span
						style="color: red;">*<%=email_err%></span></td>
				</tr>
				<tr>
					<td>Mật khẩu:</td>
					<td><input type="password" name="password" /><span
						style="color: red;">*<%=password_err%></span></td>
				</tr>
				<tr>
					<td>Nhập lại mật khẩu:</td>
					<td><input type="password" name="re_password" /><span
						style="color: red;">*<%=password_err%></span></td>
				</tr>
				<tr>
					<td colspan="2"><b>THÔNG TIN CÁ NHÂN</b></td>
				<tr>
					<td>Họ và tên:</td>
					<td><input type="text" name="name" value="<%=name%>" /><span
						style="color: red;">*<%=name_err%></span></td>
				<tr>
					<td>Phái:</td>
					<td><input type="radio" name="sex" value="Nam"
						checked="checked" />Nam <input type="radio" name="sex" value="Nu" />Nu
					</td>
				<tr>
					<td>Ngày Sinh</td>
					<td><input type="text" id="datepicker" name="date" /></td>
				</tr>
				<tr>
					<td>Số điện thoại:</td>
					<td><input type="text" name="phone" value="<%=phone%>" /><span
						style="color: red;">*<%=phone_err%></span></td>
				</tr>
				<tr>
					<td>Ảnh đại diện:</td>
					<td><input type="file" name="avatar" /></td>
				</tr>
				<tr>
				</tr>
				<tr>
					<td colspan="2"><input type="submit" value="Đăng ký" /> <input
						type="reset" value="Xóa form" /></td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>

